package com.project.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.sql.Timestamp;


/**
 * 民宿订单：(HomestayOrders)表实体类
 *
 */
@TableName("`homestay_orders`")
@Data
@EqualsAndHashCode(callSuper = false)
public class HomestayOrders implements Serializable {

    // HomestayOrders编号
    @TableId(value = "homestay_orders_id", type = IdType.AUTO)
    private Integer homestay_orders_id;

    // 商家用户
    @TableField(value = "`merchant_users`")
    private Integer merchant_users;
    // 民宿名称
    @TableField(value = "`name_of_homestay`")
    private String name_of_homestay;
    // 民宿类型
    @TableField(value = "`types_of_homestays`")
    private String types_of_homestays;
    // 民宿押金
    @TableField(value = "`homestay_deposit`")
    private Double homestay_deposit;

    @TableField(value = "`homestay_deposit_state`")
    private String homestay_deposit_state;
    // 民宿日价
    @TableField(value = "`daily_price_of_homestay`")
    private Double daily_price_of_homestay;
    // 普通用户
    @TableField(value = "`ordinary_users`")
    private Integer ordinary_users;
    // 用户姓名
    @TableField(value = "`user_name`")
    private String user_name;
    // 预约时间
    @TableField(value = "`time_of_appointment`")
    private Timestamp time_of_appointment;
    // 预约天数
    @TableField(value = "`appointment_days`")
    private Double appointment_days;
    // 费用总计
    @TableField(value = "`total_cost`")
    private Double total_cost;


    // 支付状态
    @TableField(value = "pay_state")
    private String pay_state;

    // 押金扣除
    @TableField(value = "deposit_deduction")
    private String deposit_deduction;

    // 备注
    @TableField(value = "remark")
    private String remark;

		// 取消订单限制次数
	@TableField(value = "cancellation_of_order_limit_times")
	private String cancellation_of_order_limit_times;
		// 续房限制次数
	@TableField(value = "renewal_order_limit_times")
	private String renewal_order_limit_times;
		// 评价限制次数
	@TableField(value = "user_evaluate_limit_times")
	private String user_evaluate_limit_times;

		// 来源表
	@TableField(value = "source_table")
	private String source_table;

	// 来源ID
	@TableField(value = "source_id")
	private Integer source_id;

	// 来源用户ID
	@TableField(value = "source_user_id")
	private Integer source_user_id;

	// 更新时间
    @TableField(value = "update_time")
    private Timestamp update_time;

    // 创建时间
    @TableField(value = "create_time")
    private Timestamp create_time;

    @TableField(value = "checkintime")
    private Timestamp checkintime;

    @TableField(value = "checkouttime")
    private Timestamp checkouttime;

}
